<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html">
	<f:view contentType="text/html" />
	<h:head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link href="/cultbookweb/includes/css/theme.css" media="screen" rel="stylesheet" type="text/css" />
		<link href="/cultbookweb/includes/css/theme_override.css" media="screen" rel="stylesheet" type="text/css" />
		<link href="/cultbookweb/includes/css/style.css" media="screen" rel="stylesheet" type="text/css" />
		<title>Cultbook</title>
	</h:head>
	<h:body>
		<div id="container">
			<div id="header">
				<h1>
					<a href="/cultbookweb">Trabalho da Pós</a>
				</h1>
				<div id="user-navigation">
					<ul class="wat-cf">
						<li>
							<span style="color: #0066CC;">Olá #{clienteLoginBean.nome}!!</span>
						</li>
						<li>
						<h:form>
							<h:commandLink value="Meu Carrinho" action="#{carrinhoBean.carrinho()}" class="logout" rendered="#{clienteLoginBean.nome != 'Convidado'}" />
						</h:form>
						</li>
						<li>
							<h:form>
								<h:commandButton rendered="#{clienteLoginBean.nome != 'Convidado'}" action="#{clienteLoginBean.deslogar()}" value="Logout" />
							</h:form>
						</li>
					</ul>
				</div>
				<div id="main-navigation">
					<ul class="wat-cf">
						<li><a href="#">&nbsp;</a></li>
					</ul>
				</div>
			</div>
			<div id="wrapper" class="wat-cf">
				<div class="flash"></div>
				<div id="main">
					<div class="block">
						<div class="content">
							<h2 class="title">Cadastro de Cliente</h2>
							<div class="inner">
								<h:form id="formCliente">
									<table class="table">
										<tr>
											<td>Nome</td>
											<td>
												<h:inputText value="#{clienteBean.pessoaForm.nome}" size="50" required="true" requiredMessage="Campo obrigatorio" />
											</td>
										</tr>
										<tr>
											<td>CPF</td>
											<td>
												<h:inputText value="#{clienteBean.pessoaForm.cpf}" size="50" required="true" requiredMessage="Campo obrigatorio" />
											</td>
										</tr>
										<tr>
											<td>Endereço</td>
											<td>
												<h:inputText value="#{clienteBean.pessoaForm.endereco}" size="50" required="true" requiredMessage="Campo obrigatorio" />
											</td>
										</tr>
										<tr>
											<td>Telefone</td>
											<td>
												<h:inputText value="#{clienteBean.pessoaForm.telefone}" size="50" required="true" requiredMessage="Campo obrigatorio" />
											</td>
										</tr>
										<tr>
											<td>E-mail</td>
											<td>
												<h:inputText value="#{clienteBean.pessoaForm.email}" size="50" required="true" requiredMessage="Campo obrigatorio" />
											</td>
										</tr>
										<tr>
											<td>Login</td>
											<td>
												<h:inputText value="#{clienteBean.pessoaForm.login}" size="50" required="true" requiredMessage="Campo obrigatorio" />
											</td>
										</tr>
										<tr>
											<td>Senha</td>
											<td>
												<h:inputSecret value="#{clienteBean.pessoaForm.senha}" size="50" required="true" requiredMessage="Campo obrigatorio" />
											</td>
										</tr>
										<tr>
											<td></td>
											<td>
												<h:commandButton value="Cadastrar" action="#{clienteBean.cadastrar}" />
											</td>
										</tr>
									</table>
								</h:form>
								<div class="actions-bar wat-cf">
									<div class="actions">
										<h:form id="backForm">
											<h:commandButton value="Voltar para Lista de Livros"
												action="#{listaLivrosBean.listarLivros}" />
										</h:form>
									</div>
	
								</div>
							</div>
						</div>
					</div>
	
	
					<div id="footer">
						<div class="block"></div>
					</div>
				</div>
			</div>
		</div>
	</h:body>
</html>
